﻿using UnityEngine;
using System.Collections;

public class Misc 
{
	public static float attackAngleError = 15f;
    public static bool drawLineMode = true;

    public static bool CalculateCritical(int criticalChance)
    {
        int result = Random.Range(0,100);
        if(result < criticalChance) return true;
        return false;
    }

    public static void ShowHitFX(GameObject template,Vector3 position,Quaternion rotation)
    {
        GameObject fx = (GameObject)GameObject.Instantiate(template);
        fx.transform.position = position;
        fx.transform.rotation = rotation;

    }

}
